home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0399 / 329 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  2.7 KB

  1. From: Stephen Usher <steve@earth.ox.ac.uk>
  2. Subject: Bugs in the mntlib32 Bugs file.
  3. Date: Fri, 25 Jun 1993 08:14:08 +0100 (BST)
  4. Mime-Version: 1.0
  5.  
  6. Here's some comments on the mntlib32 Bugs file. I've been meaning to send a
  7. message such as this for a long time, well I've finally got around to it!
  8.  
  9. >utmp.c: ++boender
  10. >  The utmp structure as defined differs from the System V structure.
  11. >  Now, I don't know what BSD does, but I'll look it up.
  12.  
  13. This IS the BSD structure, it's source code compatable. The wtmp file is
  14. able to be correctly interpreted by the Sun last(1) command.
  15.  
  16. >  Do you know what POSIX says about the utmp structure?
  17.  
  18. I doubt it says much, if anything about it.
  19.  
  20. >  Also, the System V getutent, getutid, etc. calls are missing from
  21. >  the mintlibs, but they are so dependent on fields in the utmp
  22. >  structure that are missing in the mintlibs that they cannot be
  23. >  written without changing the utmp structure.
  24.  
  25. Well... probably this is because BSD doesn't need all this extra info.
  26.  
  27. >  I think complying with POSIX on this would be a Good Thing; if
  28. >  someone could send me the relevant parts, I'll write the routines.
  29. >  Note that all kind of stuff is dependent on this and has to be
  30. >  emulated in the mintlibs, like getlogin(), or left out altogether,
  31. >  like ttyslot().
  32.  
  33. This is what SunOS 4.1 says about ttyslot(3V)...
  34.  
  35. TTYSLOT(3V)            C LIBRARY FUNCTIONS            TTYSLOT(3V)
  36.  
  37. NAME
  38.      ttyslot - find the slot in the utmp file of the current pro-
  39.      cess
  40.  
  41. SYNOPSIS
  42.      int ttyslot()
  43.  
  44. DESCRIPTION
  45.      ttyslot() returns the index of the current user's  entry  in
  46.      /etc/utmp.   This  is  accomplished by actually scanning the
  47.      file /etc/ttytab for the name  of  the  terminal  associated
  48.      with  the  standard input, the standard output, or the error
  49.      output (0, 1 or 2).
  50.  
  51. As SunOS has the same utmp and ttytab structures as my init(8) package the
  52. MiNT library should be able to do the same. Similarly getlogin(3V).
  53.  
  54. >  Oh, and this: changing the utmp structure is a pretty large
  55. >  operation, since init(1) will have to be overhauled completely.
  56. >  As I don't think MiNT will ever write /etc/utmp and /etc/wtmp
  57. >  structures on booting, perhaps we should leave this be.
  58.  
  59. Please note that the routines in utmp.c were merely utility routines for my
  60. init(8) package which were added to the library because they seemed useful
  61. to people. There are no equivalent routines in either SYSVr* or BSD.
  62.  
  63. I hope this clears things up a bit.
  64.  
  65. Steve
  66.  
  67. -- 
  68. ---------------------------------------------------------------------------
  69. Computer Systems Administrator, Dept. of Earth Sciences, Oxford University.
  70. E-Mail: steve@uk.ac.ox.earth (JANET) steve@earth.ox.ac.uk (Internet).
  71. Tel:- Oxford (0865) 282110 (UK) or +44 865 282110 (International).
  72.